/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.avu.tp.assign2.question3.srp.config;

import com.avu.tp.assign2.question3.srp.conforms.Deposit;
import com.avu.tp.assign2.question3.srp.conforms.Transaction;
import com.avu.tp.assign2.question3.srp.conforms.Withdrawal;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;

/**
 *
 * @author Malotana
 */
@Configurable
public class AppConfig {
    @Bean(name="srpDeposit")
    public Transaction trans(){
        return new Deposit();
    }
    @Bean(name="srpWithdrawal")
    public Transaction withdrawal(){
        return new Withdrawal();
    }
}
